import request from '@/utils/request'

// 查询自动化cookies列表
export function listCookies(query) {
  return request({
    url: '/automatic/cookies/list',
    method: 'get',
    params: query
  })
}

// 查询自动化cookies详细
export function getCookies(id) {
  return request({
    url: '/automatic/cookies/' + id,
    method: 'get'
  })
}

// 新增自动化cookies
export function addCookies(data) {
  return request({
    url: '/automatic/cookies',
    method: 'post',
    data: data
  })
}

// 修改自动化cookies
export function updateCookies(data) {
  return request({
    url: '/automatic/cookies',
    method: 'put',
    data: data
  })
}

// 删除自动化cookies
export function delCookies(id) {
  return request({
    url: '/automatic/cookies/' + id,
    method: 'delete'
  })
}
